package simbot.example.demo.serializer;

import java.util.Calendar;
import java.util.Date;

public class JsonMouth {
    public long addMouth(long startTime,int mouth){
        Date date = new Date(startTime);
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);//设置起时间
        cal.add(Calendar.MONTH, mouth);//增加一个月   
        return cal.getTimeInMillis();
    }
}
